package com.ncloud.aaaa.model;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@SuppressWarnings("serial")
@Entity
@Table(name="sys_role_func")
public class RoleFunc implements Serializable{
	
	@Id
	private Long funcId;
	
	@Id
	private Long roleId;
	
	@Override
	public int hashCode(){
		final int prime = 31;
        int result = 1;
        result = prime * result + ((funcId == null) ? 0 : funcId.hashCode());
        result = prime * result
                + ((roleId == null) ? 0 : roleId.hashCode());
        return result;
	}
   
	@Override
    public boolean equals(Object obj) {
		 if (this == obj)
             return true;
         if (obj == null)
             return false;
         if (getClass() != obj.getClass())
             return false;
         return true;
	}
	
}
